package com.koron.device.service;

import com.koron.bean.base.Response;
import com.koron.bean.system.staff.vo.EamUser;
import com.koron.device.bean.ClassifyBean;
import com.koron.device.bean.EquipmentBackup;
import com.koron.device.bean.EquipmentBackupQuery;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;


public interface EquipmentBackupService {
    Response getById(SessionFactory factory,String id);
    Response getClassifyById(SessionFactory factory,String classifyid);
    Response add(SessionFactory factory, EquipmentBackup query);
    List<EquipmentBackup> serch(SessionFactory factory, EquipmentBackupQuery query);
    List<EquipmentBackup> serchnew(SessionFactory factory, EquipmentBackupQuery query);
    Response update(SessionFactory factory, EquipmentBackup query);
    Response commit(SessionFactory factory, EquipmentBackup query);
    Response delete(SessionFactory factory,EquipmentBackup query);
  Response importFile(SessionFactory factory, List<EquipmentBackup> list);
  Response batchSaveEqBack(SessionFactory factory, List<EquipmentBackup> query);
  Response bindBatch(SessionFactory factory, List<EquipmentBackup> query);
  Response noBindBatch(SessionFactory factory, List<String> bingId);

    List<ClassifyBean> getTree (SessionFactory factory, ClassifyBean query);
    List<ClassifyBean> getTreeList (SessionFactory factory);

    Response insertClassify(SessionFactory factory,EamUser user, ClassifyBean classifyBean);

    Response updateClassify(SessionFactory factory,EamUser user, ClassifyBean classifyBean);

    Response deleteClassify(SessionFactory factory,EamUser user, ClassifyBean classifyBean);

}
